﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admincp/admin.Master" AutoEventWireup="true" CodeBehind="News.aspx.cs" Inherits="xyw.admincp.News" %>

<%@ Register Src="Controls/UC_SecondNews.ascx" TagName="UC_SecondNews" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderSecond" runat="server">
    <uc1:UC_SecondNews ID="UC_SecondNews1" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderContents" runat="server">
    <div id="main">

        <div class="box">
            <div class="box-header">
                <h1>新闻中心<asp:Literal ID="lt_Cname" runat="server"></asp:Literal></h1>
            </div>

            <table class="datatable">
                <thead>
                    <tr>
                        <th>标题</th>
                        <th>作者</th>
                        <th>时间</th>
                        <th>部门</th>
                        <th>分类</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
                        <ItemTemplate>
                            <tr>
                                <td><%# Eval("title") %></td>
                                <td><%# Eval("author") %></td>
                                <td><%# Eval("pubDate","{0:yyyy-MM-dd HH:mm}") %></td>
                                <td><%# Eval("department") %></td>
                                <td><%# Eval("classify") %></td>
                                <td>
                                    <asp:HiddenField ID="hd_SortBy" runat="server" Value='<%# Eval("sortBy") %>' />
                                    <a href="./NewsAdd.aspx?id=<%# Eval("ID") %>#" style="text-decoration:none" title="编辑"><span class="glyph pencil"></span></a>
                                    <asp:LinkButton ID="LinkButton1" style="text-decoration:none" ToolTip="删除" runat="server" CommandArgument='<%#Eval("ID") %>' CommandName="Delete" OnClientClick="return confirm('确定删除吗？')"><span class="glyph cross"></span></asp:LinkButton>
                                                                        
                                    <asp:LinkButton ID="LinkButton3" style="text-decoration:none" ToolTip="首页大标题" runat="server" CommandArgument='<%#Eval("ID") %>' CommandName="Top1"><span class="glyph star"></span></asp:LinkButton>
                                    <asp:LinkButton ID="LinkButton2" style="text-decoration:none" ToolTip="首页显示" runat="server" CommandArgument='<%#Eval("ID") %>' CommandName="Top"><span class="glyph up"></span></asp:LinkButton>
                                    
                                    
                                    <asp:LinkButton ID="LinkButton4" style="text-decoration:none" Visible="false" ToolTip="取消首页" runat="server" CommandArgument='<%#Eval("ID") %>' CommandName="Down"><span class="glyph down"></span></asp:LinkButton>
                                   
                                </td>
                            </tr>

                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
        </div>

    </div>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderScript" runat="server">
    <style>
        form input[type="text"], form input[type="password"], form textarea {
            width:75px;
        }
    </style>
</asp:Content>
